package com.quikin.persistence.stdjpa.util;

public class PersistenceConfigure {

    private static final ThreadLocal<String> puName = new ThreadLocal<String>();
    
    private static PersistenceConfigure instance;
    
    private PersistenceConfigure() {
        
    }
    
    public static PersistenceConfigure getInstance() {
        if (instance == null) {
            instance = new PersistenceConfigure();
        }
        return instance;
    }
    
    public void setCurrentPUName(String name) {
        puName.set(name);
    }
    
    public String getCurrentPUName() {
        return puName.get();
    }
}
